
package com.bei_en.teacher.admin.model.questions.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsCollection;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-21 21:28:03
 */
public class QuestionsCollectionVo extends BaseVo {

    private QuestionsCollection questionsCollection;

    public QuestionsCollectionVo() {

    this.questionsCollection = new QuestionsCollection();
    }

    public QuestionsCollectionVo(QuestionsCollection questionsCollection) {

    this.questionsCollection = questionsCollection;
    }
    
    public QuestionsCollection getQuestionsCollection() {

    return this.questionsCollection;
    }
    
    public void setQuestionsCollection(QuestionsCollection questionsCollection) {

    this.questionsCollection=questionsCollection;
    }

        public Integer getId() {
            return this.questionsCollection.getId();
        }
        public void setId(Integer id) {
            this.questionsCollection.setId(id);
        }
        
        public void setId(Integer value) {
    	this.questionsCollection.setId(value);
        }
	
    public Integer getId() {
        return this.questionsCollection.getId();
    }
        
        public void setUserId(Integer value) {
    	this.questionsCollection.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.questionsCollection.getUserId();
    }
        
        public void setCollectionPeople(Integer value) {
    	this.questionsCollection.setCollectionPeople(value);
        }
	
    public Integer getCollectionPeople() {
        return this.questionsCollection.getCollectionPeople();
    }
        
        public void setQuestionsId(Integer value) {
    	this.questionsCollection.setQuestionsId(value);
        }
	
    public Integer getQuestionsId() {
        return this.questionsCollection.getQuestionsId();
    }
        
    public void setCreateTime(Date value) {
        this.questionsCollection.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.questionsCollection.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}